home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bc_ti.zip / TI732.ASC < prev    next >
Text File  |  1992-02-25  |  685b  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C++                            NUMBER  :  732
  9.   VERSION  :  2.0
  10.        OS  :  DOS
  11.      DATE  :  February 25, 1992                        PAGE  :  1/1
  12.  
  13.     TITLE  :  How to Print the Current Time
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.   /*************************************************************
  25.   This program illustrates how to print the current time.
  26.   *************************************************************/
  27.  
  28.   #include <stdio.h>
  29.   #include <time.h>
  30.  
  31.   int main(void)
  32.   {
  33.      time_t t;
  34.  
  35.      time(&t);
  36.      printf("Today's date and time: %s\n", ctime(&t));
  37.      return 0;
  38.   }
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.